package secondriver.jetty.app.server;

public class JettyAppMain {

	public static void main(String[] args) {

		/**
		 * default port:9999
		 * 
		 * default contextPath:'/'
		 */
		String contextPath = args[0];

		if (contextPath != null && contextPath.length() > 1
				&& contextPath.endsWith("/")) {
			throw new IllegalArgumentException("contextPath ends with /");
		}

		JettyAppServer server = JettyAppServer.getJettyAppServer(contextPath);
		server.startServer();
	}
}
